/**
 *     This file is part of cesm-ws.
 *
 *     cesm-ws, Web Service for Community Earth System Model
 *
 *     Copyright (c) 2010, Purdue University and/or affilicates or thrid-party contributors as
 *     indicated by the @author tags or express copyright attribution statements
 *     applied by the authors. All third-party contributions are distributed under
 *     license by Purdue University.
 *
 *     cesm-ws is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with this distribution.  If not, see <http://www.gnu.org/licenses/>.
 */

package edu.purdue.rcac.cesm.ws.restful;

import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import edu.purdue.rcac.cesm.facade.bean.AllCaseInfoBean;

public interface CESMRestfulInterface {

	// return a token if user is authenticated, otherwise return ""
	@GET
	@Produces({ "application/xml" })
	@Path("authenticate/")
	public abstract String authenticate(
			@HeaderParam("userName") String userName,
			@HeaderParam("password") String password) throws Exception;

	@GET
	@Produces({ "application/xml" })
	@Path("echo/{str}")
	public abstract String echo(
			@PathParam("str") String str) throws Exception;
	
	@GET
	@Produces({ "application/xml" })
	@Path("getCaseInfoList/")
	public AllCaseInfoBean getCaseInfoList(
			@HeaderParam("userName") String userName,
			@HeaderParam("token") String token) throws Exception;
}